RETURNING clause in INSERT INTO ... SELECT ... possible?

您所在的位置:网站首页 Oracle insert into select from RETURNING clause in INSERT INTO ... SELECT ... possible?

RETURNING clause in INSERT INTO ... SELECT ... possible?

#RETURNING clause in INSERT INTO ... SELECT ... possible?| 来源: 网络整理| 查看: 265

I have an SQL like this: INSERT INTO table1 () SELECT FROM dual WHERE NOT EXISTS ( SELECT 1 FROM WHERE ); Thing is, I want to get the primary key of the inserted row in table1 . Looks like a the RETURNING clause cannot be used for INSERT INTO SELECT. I tried and it gives error. My DB is 11g Enterprise Edition Release 11.2.0.4.0 .



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3